﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace HOOMT
{
    class ExternalInterfaceOut : ObjectDiagram
    {
        public ExternalInterfaceOut(Point point, int width, int height, string id)
            : base(point, width, height)
        {

        }

        public override void Drawing(Graphics graphics, OriginalModelForm m)
        {
            int distance = 5;
            graphics.DrawEllipse(new Pen(Color.Brown, 1), new Rectangle(upLeftpoint.X, upLeftpoint.Y, width, height));
            graphics.DrawEllipse(new Pen(Color.Brown, 1), new Rectangle(upLeftpoint.X + distance, upLeftpoint.Y + distance, width - 2 * distance, height - 2 * distance));
            graphics.DrawString(this.name, drawFont, drawBrush, new Point(upLeftpoint.X, upLeftpoint.Y + height));
        }
    }
}
